
Page({
    data: {
        newxx: [],
        url:'',
        courseDetail:''
    },

    //options为页面跳转带来的参数
    onLoad: function (options) {
        // var WxParse = require('../wxParse/wxParse.js');
        console.log(options.uniquekey);
        var _this = this;
        wx.request({
            url: 'https://v.juhe.cn/toutiao/content?key=e01fe8c6572b93da3253edf71d0e5035&uniquekey=' + options.uniquekey,
            method: 'post',
            success: (res) => {
                _this.setData({
                    newxx: res.data.result.detail,
                    wenzi: res.data.result.content
                })
            }
        })
        // // 解析html
        // WxParse.wxParse(courseDetail,html,wenzi,this)
    }
})